<template>
  <div>
      <van-nav-bar class="app-nav-bar" title="快捷请假申请填写" left-arrow @click-left="onClickLeft"/>
        
  </div>
</template>

<script>
export default {
data(){
        return{
            tableData:[],
        }
    },
    methods:{
        onClickLeft(){
            this.$router.go(-1) 
        },
        async getUser(){
            var {data:res} =await this.request.get('app/Leave/getleaveType?dictType=leave_type')
            console.log(res);
            this.tableData=res.data;
        },
        async getUser2(){
            var {data:res} =await this.request.get('app/Leave/getClassByTeaId?teacherId=2')
            console.log(res);
            this.tableData=res.data;
        }
    },created(){
        this.getUser();
        this.getUser2();
    }
}
</script>

<style>

</style>